import request from '@/utils/request'

// 查询点赞列表
export function listBiglike(query) {
  return request({
    url: '/discuss/biglike/list',
    method: 'get',
    params: query
  })
}

// 查询点赞详细
export function getBiglike(likeid) {
  return request({
    url: '/discuss/biglike/' + likeid,
    method: 'get'
  })
}

// 新增点赞
export function addBiglike(data) {
  return request({
    url: '/discuss/biglike',
    method: 'post',
    data: data
  })
}

// 修改点赞
export function updateBiglike(data) {
  return request({
    url: '/discuss/biglike',
    method: 'put',
    data: data
  })
}

// 删除点赞
export function delBiglike(likeid) {
  return request({
    url: '/discuss/biglike/' + likeid,
    method: 'delete'
  })
}
